<template>
  <div>
    <h1>505</h1>
    <span>用户名:{{$route.query.name}}</span>
  </div>
</template>

<script>
  export default{
    name:"testIndex",
    mounted() {//挂载函数
      var name = this.$route.query.name;
      console.log("name=" + name);

    }
  }
</script>

<style>
</style>
